home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-30 | 1.5 KB | 33 lines | [TEXT/ttxt] |
- CAccordionPane.c
-
- This set of classes implement another method for altering the size and
- location of sub panes when the primary pane is resized.
-
- TCL sub panes are related to the edges of the primary pane. While this
- is quite flexible it does make difficult the need to relate panes as a
- sequence and as a proportion of the whole.
-
- The CAccordionPane classes relates panes as a sequence of vertical or
- horizontal sub-panes. Each pane is either elastic or fixed. When an
- accordion pane is resized each sub-pane is resized so as to keep the order
- and sub-pane proportionality intact. For example, three horizontally
- arranged panes each having 1/3 of the available width can be encoded with
- a CHAccordionPane.
-
- More complex plane arrangements can be had by placing accordion panes
- within accordion panes. Thus, for example, a SmallTalk like browser is no
- more than a CVAccordionPane with two sub-panes. The first sub-pane is a
- CHAccordionPane composed of three CArrayPanes. The second sub-pane is a
- CEditText pane.
-
- To use the accordion panes simply a matter of making it the enclosure of
- the sub-panes. Each time a pane is added as a subpane of another
- AddSubview() is called. AddSubview() is overridden by CVAccordionPane
- and CHAccordionPane to update the proportion tables. If the sub-pane
- is to have a proportion other than make a call to SetSubviewPortion().
-
- Copyright (C) 1993 by Brown University. All rights reserved.
-
- AUTHOR: Andrew_Gilmartin@Brown.Edu
- MODIFIED: 93-03-05
-